package cn.com.smartdevices.bracelet.chart.util;

import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.graphics.Color;
import android.view.View;

/* renamed from: cn.com.smartdevices.bracelet.chart.util.o */
final class C0799o implements AnimatorUpdateListener {
    final /* synthetic */ int f4086a;
    final /* synthetic */ int f4087b;
    final /* synthetic */ int f4088c;
    final /* synthetic */ int f4089d;
    final /* synthetic */ int f4090e;
    final /* synthetic */ int f4091f;
    final /* synthetic */ View[] f4092g;
    final /* synthetic */ C0800p f4093h;

    C0799o(int i, int i2, int i3, int i4, int i5, int i6, View[] viewArr, C0800p c0800p) {
        this.f4086a = i;
        this.f4087b = i2;
        this.f4088c = i3;
        this.f4089d = i4;
        this.f4090e = i5;
        this.f4091f = i6;
        this.f4092g = viewArr;
        this.f4093h = c0800p;
    }

    public void onAnimationUpdate(ValueAnimator valueAnimator) {
        float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
        int rgb = Color.rgb((int) ((((float) this.f4086a) * floatValue) + (((float) this.f4087b) * (1.0f - floatValue))), (int) ((((float) this.f4088c) * floatValue) + (((float) this.f4089d) * (1.0f - floatValue))), (int) (((1.0f - floatValue) * ((float) this.f4091f)) + (((float) this.f4090e) * floatValue)));
        for (View backgroundColor : this.f4092g) {
            backgroundColor.setBackgroundColor(rgb);
        }
        if (this.f4093h != null) {
            this.f4093h.m8763a(rgb);
        }
    }
}
